/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       creature_icon_window.h

	$Header: /game/creature_icon_window.h $

	$NoKeywords: $

 ************************************************************************/

#ifndef CREATURE_ICON_WINDOW_H_INCLUDED
#define CREATURE_ICON_WINDOW_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

// kill the 255+ character identifier warning.  Templates tend to exceed that easily.
#pragma warning( disable: 4786 )


#include "bitmap_group_ptr.h"
#include "game_window.h"

class t_bitmap_layer_cache_window;
class t_abstract_creature;
// ----------------------------------------------------------------
// display a creature / hero portrait in a ring, and include help text / right click
// ----------------------------------------------------------------
class t_creature_icon_window : public t_window
{
public:
	t_creature_icon_window( t_screen_rect const& rect, t_window* parent, 
		                    t_abstract_creature const* stack = 0,
							bool force_awake_portrait = false );
	void clear_creature();
	void set_creature( t_abstract_creature const* stack, bool force_awake_portrait = false );
protected:
	t_bitmap_group_ptr           m_bitmaps;
	t_bitmap_layer_cache_window* m_icon;
	int                          m_size;
};

#endif // CREATURE_ICON_WINDOW_H_INCLUDED